<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $title;?></title>
<?php echo @$css.@$js;?>
</head>
<body class="home">
<!-- header start-->
<div class="header">
<div class="menu">
<div class="logo" >
<a href='<?php echo MVC_WWW_HOST;?>admin.php/admin/home' style="font-weight: bold">
<?php echo $title;?></a>
</div>
<?php 
echo $menu;
?>
<input type="hidden"" id="actionto">
</div>
</div>
<!-- header end -->

<script type="text/javascript">
function showChild(id){
	$("#"+id).show();
}
function hideChild(id){
	$("#"+id).hide();
}

</script>

<iframe  id="frame_content"  name="mainframe"  scrolling="auto" frameborder="0" onload="this.height=475" width="100%" src="<?php echo MVC_WWW_HOST.'admin.php/admin/home/list'?>"></iframe>

<script type="text/javascript">

function reinitIframe(){
	var iframe = document.getElementById("frame_content");
	
	try{
	
	var bHeight = iframe.contentWindow.document.body.scrollHeight;
	
	var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
	
	var height = Math.max(bHeight, dHeight);
	if(height>475){
		iframe.height =  height;
		//$("#frame_content").attr('style',' border-bottom:solid 2px #ffffff');
		$("#frame_content").attr('scrolling','auto');
	}
	}catch (ex){}

}

window.setInterval("reinitIframe()", 200);

</script>


